package com.pikaqiu.warehouse.domain.dto;

import com.pikaqiu.warehouse.domain.entity.Category;
import lombok.Data;

import java.util.List;

/**
 * @Author: Administrator
 * @Date: 2024/8/15
 */
@Data
public class CategoryGroupDto {

    private Integer id;

    private String name;

    private Integer sorted;

    private List<CategoryGroupContentDto> contentList;

    public CategoryGroupDto(Category category, List<CategoryGroupContentDto> contentList) {
        this.id = category.getId();
        this.name = category.getName();
        this.sorted = category.getSorted();
        this.contentList = contentList;
    }
}
